namespace CaltechSoft.Service.Migrations
{
    using Caltech.Service.Common;
    using CaltechSoft.Service.EntityFW.Context;
    using CaltechSoft.Service.EntityFW.Entity;
    using Microsoft.AspNet.Identity;
    using Microsoft.AspNet.Identity.EntityFramework;
    using System;
    using System.Data.Entity;
    using System.Data.Entity.Migrations;
    using System.Linq;

    internal sealed class Configuration : DbMigrationsConfiguration<CaltechSoft.Service.EntityFW.Context.CaltechContext>
    {
        public Configuration()
        {
            AutomaticMigrationsEnabled = true;
        }

        protected override void Seed(CaltechSoft.Service.EntityFW.Context.CaltechContext context)
        {
            //var roleManager = new RoleManager<Role>(new RoleStore<Role>(new CaltechContext()));

            //foreach (var role in Enum.GetNames(typeof(Roles)))
            //{
            //    roleManager.Create(new Role(role));
            //}
        }
    }
}
